package com.qdlc.p2p.biz.service.activity.param;

import com.qdlc.p2p.biz.service.activity.ActivityProgrammeParam;

public class ActivityProgrammeRedeemCodeParam extends ActivityProgrammeParam{

	//交易金额
	double amount;
	
	//返现方式
	String mode;
	
	public static enum Mode{
		
		BACK_NOW,		//返现
		
		REDEEM_CODE;	//兑换码
	}
	

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Mode getMode() {
		if(mode == null){
			return Mode.REDEEM_CODE;
		}
		return Mode.BACK_NOW.name().equalsIgnoreCase(mode) ? Mode.BACK_NOW : Mode.REDEEM_CODE;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}
	
}
